package cc.yugu.yhdw.webserver.persistence.basic;

import cc.yugu.yhdw.common.domain.basic.TerminalUpgradePack;
import cc.yugu.yhdw.common.persistence.MasterMapper;

import java.util.List;
/**
 * 终端升级
 * 
 * @Date:Created in 2018/6/29 11:28
 * @Author:
 * @Modified By: zjn 2018/6/29 11:28
 */ 
public interface TerminalUpgradePackMapper extends MasterMapper {
    /**
    * 根据主键id查询表 bas_terminal_upgrade_pack
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.basic.TerminalUpgradePack
    * @Author By: zjn 2018/6/29  11:28
    */
    public TerminalUpgradePack find(int id);
    /**
    * 查询指定条件，返回行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/29  11:29
    */
    public int findPageCount(TerminalUpgradePack search);
    /**
    * 按条件分页查询
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.basic.TerminalUpgradePack>
    * @Author By: zjn 2018/6/29  11:30
    */
    public List<TerminalUpgradePack> findPageResult(TerminalUpgradePack search);
    /**
    * 插入数据
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/29  11:30
    */
    public int insert(TerminalUpgradePack entity);
    /**
    * 根据主键id更新
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/29  11:30
    */
    public int update(TerminalUpgradePack entity);
    /**
    * 根据主键id删除
    *
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/29  11:31
    */
    public int delete(int id);
}
